<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网站管理中心</title>
<meta name="Copyright" content="Douco Design." />
<link href="css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/global.js"></script>
</head>
<body>
<div id="dcWrap"> <div id="dcHead">
 <div id="head">
  <div class="logo"><a href="index.html"><img src="images/dclogo.gif" alt="logo"></a></div>
  <div class="nav">
   <ul>
       <li><a href="search.php">查看模块</a></li>
    <li><a href="new.php">新建模块</a></li>
    <li><a href="edit.php">编辑模块</a></li>
	 <li><a href="delete.php">删除模块</a></li>
    <li><a href="">帮助</a></li>
    </ul>
   <ul class="navRight">
    <li class="M noLeft"><a href="JavaScript:void(0);">您好，admin</a>
     
    </li>
    <li class="noRight"><a href="login.php?rec=logout">退出</a></li>
   </ul>
  </div>
 </div>
</div>
<!-- dcHead 结束 --> <div id="dcLeft"><div id="menu">
 <!--<ul class="top">
  <li><a href="index.html"><i class="home"></i><em>管理首页</em></a></li>
 </ul>-->
 <ul>
    <li><a href="physical.php"><i class="show"></i><em>生理健康模块管理</em></a></li>
 </ul>
 <ul>
  <li><a href="emotion.php"><i class="page"></i><em>心理健康模块管理</em></a></li>
 </ul>
   <ul>
  <li><a href="talk.php"><i class="productCat"></i><em>专家模块管理</em></a></li>
 
 </ul>
  <ul>
  <li><a href="bk.php"><i class="articleCat"></i><em>百科模块管理</em></a></li>
  </ul>
   <ul>
  <li><a href="user.php"><i class="articleCat"></i><em>注册用户信息管理</em></a></li>
  </ul>
</div></div>
 <div id="dcMain"> <!-- 当前位置 -->
  <div id="index" class="mainBox" style="padding-top:18px;height:auto!important;height:550px;min-height:550px;">
   <tr>
     <td width="65%" valign="top" class="pr">
      <div class="indexBox">
       <div class="boxTitle">编辑模块信息</div>
	 </tr>
	 <tr>
	 <?php
					   $link=mysql_connect("localhost","root","root") or die("不能连接到数据库服务器！可能是数据库服务器没有启动");
						$db_selected=mysql_select_db("db_ee",$link);
						mysql_query("set names utf8");
						$id=$_GET[id];
						$sql=mysql_query("select * from bk where id=$id",$link);
						$info=mysql_fetch_array($sql);
						
		   ?>
  <form action="bk_edit_ok.php?id=<?php echo $id?>" method="post">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
       <td width="80" align="right">百科标题</td>
       <td>
        <input type="text" name="title" value=<?php echo $info[title] ?> size="40" class="inpMain" />
       </td>
      </tr>
      
      
      <tr>
       <td align="right">百科内容</td>
       <td>
        <!-- KindEditor -->		
			<link rel="stylesheet" href="js/kindeditor/themes/default/default.css" />
			<link rel="stylesheet" href="js/kindeditor/plugins/code/prettify.css" />
			<script charset="utf-8" src="js/kindeditor/kindeditor.js"></script>
			<script charset="utf-8" src="js/kindeditor/lang/zh_CN.js"></script>
			<script charset="utf-8" src="js/kindeditor/plugins/code/prettify.js"></script>
        <script>
					KindEditor.ready(function(K) {
						var editor1 = K.create('textarea[name="content"]', {
							cssPath : '../plugins/code/prettify.css',
							uploadJson : '../php/upload_json.php',
							fileManagerJson : '../php/file_manager_json.php',
							allowFileManager : true,
							afterCreate : function() {
								var self = this;
								K.ctrl(document, 13, function() {
									self.sync();
									K('form[name=example]')[0].submit();
								});
								K.ctrl(self.edit.doc, 13, function() {
									self.sync();
									K('form[name=example]')[0].submit();
								});
							}
						});
						prettyPrint();
					});
        </script>
        <!-- /KindEditor -->
        <textarea id="content"  name="content" style="width:780px;height:400px;" class="textArea" ><?php echo $info[content] ?></textarea>
       </td>
      </tr>
      
      <tr>
       <td></td>
       <td align="center">
        <input type="hidden" name="token" value="f65745c0" />
        <input type="hidden" name="id" value="">
        <input name="submit" class="btn" type="submit" value="提交" />&nbsp;&nbsp;&nbsp;
		<input name="cz" class="btn" type="button" value="重置" />
       </td>
      </tr>
     </table>
    </form>
	</tr>
      </div>
     </td>
     
    </tr>
   </table>
 
</body>
</html>